package com.oocl.o2o.client.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;
import com.oocl.o2o.client.dao.ComplaintInfoDao;
import com.oocl.o2o.client.entity.ComplaintInfo;


@Repository(value="complaintInfoDaoImpl")
public class ComplaintInfoDaoImpl implements ComplaintInfoDao {

	@PersistenceContext(name="un")
	private EntityManager manager;
	@Override
	public ComplaintInfo add(ComplaintInfo complaintInfo) {
		manager.persist(complaintInfo);
		return complaintInfo;
	}

}
